Q3AttributeSet_Add
You can use theQ3AttributeSet_Add
function to add an attribute to an attribute set.
TQ3Status Q3AttributeSet_Add ( TQ3AttributeSet attributeSet, TQ3AttributeType type, const void *data);
attributeSet
- An attribute set.
type
- An attribute type.
data
- A pointer to the attribute's data.
DESCRIPTION
TheQ3AttributeSet_Add
function adds the attribute specified by thetype
anddata
parameters to the attribute set specified by theattributeSet
parameter. The attribute set must already exist when you callQ3AttributeSet_Add
. If that attribute set already contains an attribute of the specified type,Q3AttributeSet_Add
replaces that attribute with the one specified by thetype
anddata
parameters. Note that the attribute data is copied into the attribute set. Accordingly, you can reuse thedata
parameter once you have calledQ3AttributeSet_Add
.